package cn.yq.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class HelloController {
	
	@RequestMapping(value="/hello")
	public String index(Model model){
		model.addAttribute("message", "hello---world");
		return "hello";
	}

}
